package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface CheckGroupMapper extends Mapper<CheckGroup> {

    /**
     * @Author: JASON
     * @Date: 16:17 2021/1/4
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 检查组分页查询
     */
    Page<CheckGroup> findByPage(String queryString);



    /**
     * 插入检查组合检查项关联关系
     *
     * @param checkGroupId
     * @param checkItemId
     */
    void insertCheckGroupAndCheckItem(@Param("checkGroupId") Integer checkGroupId, @Param("checkItemId") Integer checkItemId);

    /**
     * @Author: JASON
     * @Date: 16:32 2021/1/5
     * @Parms [id]
     * @ReturnType: void
     * @Description: 删除原有关系
    */
    void deleteCheckGroupAndCheckItemByCheckGroupId(Integer id);
}
